triangle pattern logic

welcome to shbcf.ru